package com.codeshellme.bookmanager.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/test")
public class TestController {

    @RequestMapping("/test")
    public String test(HttpServletRequest request) {
        request.getSession().setAttribute("abc", "123");
        return "ok";
    }

}
